<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>用户注销</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .logout-container {
            background-color: white;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            text-align: center;
            max-width: 400px;
            width: 100%;
        }

        .logout-container h2 {
            color: #333;
            margin-bottom: 20px;
        }

        .logout-container p {
            color: #666;
            margin-bottom: 30px;
        }

        .btn-group button {
            padding: 10px 20px;
            margin: 0 10px;
            font-size: 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .confirm-btn {
            background-color: #e74c3c;
            color: white;
        }

        .cancel-btn {
            background-color: #95a5a6;
            color: white;
        }

        .confirm-btn:hover {
            background-color: #c0392b;
        }

        .cancel-btn:hover {
            background-color: #7f8c8d;
        }
    </style>
</head>
<body>

<div class="logout-container">
    <h2>是否确认注销？</h2>
    <p>您将退出当前账户，所有未保存的数据将会丢失。</p>
    <div class="btn-group">
        <button class="confirm-btn" onclick="confirmLogout()">确认</button>
        <button class="cancel-btn" onclick="cancelLogout()">取消</button>
    </div>
</div>

<script>
    function confirmLogout() {
        // 此处执行实际的注销逻辑，例如：
        alert("正在注销...");
        // window.location.href = "login.html"; // 跳转到登录页示例
    }

    function cancelLogout() {
        alert("已取消注销");
        // history.back(); // 返回上一页 或跳转至首页
    }
</script>

</body>
</html>